package com.ybwh.springboot2.common.mybatis.plus;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author fanbeibei
 * @version 1.0.0
 * @date 2023/6/5 17:49
 */
public class DaoContext {
    public static final String CREATE_ID = "create_id";
    public static final String CREATE_TIME = "create_time";
    public static final String UPDATE_ID = "update_id";
    public static final String UPDATE_TIME = "update_time";


    private static ThreadLocal<Long> updateId = new ThreadLocal<>();
    private static ThreadLocal<LocalDateTime> updateTime = new ThreadLocal<>();

    public static void setUpdateId(Long updateId0) {
        updateId.set(updateId0);
    }


    public static Long getUpdateId() {
        return updateId.get();
    }


    public static LocalDateTime getUpdateTime() {
        return updateTime.get();
    }

    public static void setUpdateTime(LocalDateTime updateTime0) {
        updateTime.set(updateTime0);
    }

}
